<?php
if(isset($_REQUEST['cate_id'])){
	$v_cate_id=$_REQUEST['cate_id'];
}
if(_is_sqlserver()){
	// Lay so luong cau hoi co trong co quan hanh chinh
	$cmd = @mssql_init("ONEGATE_QACountByCate", $conn);
	@mssql_bind($cmd, "@p_cate_id",$v_cate_id, SQLINT4);
	$result = @mssql_execute($cmd);
	$arr_all_qa_by_cate = _get_row_to_array($result);
	@mssql_free_result($result);
	$v_total_qa =sizeof($arr_all_qa_by_cate);
	$v_cate_name = $arr_all_qa_by_cate['0']['1'];


	$cmd = @mssql_init("ONEGATE_QAAgencyGetAllByCate",$conn);
	@mssql_bind($cmd,"@p_cate_id",$v_cate_id,SQLINT4);	
	$rs_all_agency = @mssql_execute($cmd);
	$arr_all_agency = _get_row_to_array($rs_all_agency); 
	@mssql_free_result($rs_all_agency);
}?>